Bug Fix and use of new GPUCompiler persistent caching (8x improvement to loading time)#760
Closed
collinwarner wants to merge 2 commits intoEnzymeAD:mainfrom
Closed
Bug Fix and use of new GPUCompiler persistent caching (8x improvement to loading time)#760collinwarner wants to merge 2 commits intoEnzymeAD:mainfrom
collinwarner wants to merge 2 commits intoEnzymeAD:mainfrom
Conversation
Author
Author
|
Bug Found: The following script will error out with a segfault in the current Enzyme implementation. This occurs because the generated functions for thunk and deferred_codegen do no retrigger GPUCompiler and instead use stale values. Simply dropping the generated tag fixes the segfault but we are no longer able to look up unique method instances as the returned world ages are incorrect. Instead we should switch to using GPUCompiler.methodinstance directly dropping the need to filter on world ages. With the following segfault: |
Member
|
Can you split that last change out into a new PR? |
Author
|
Changing to new PR, cleaning |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add functionality of GPUCompiler JuliaGPU/GPUCompiler.jl#425. Sees 8x improvement of cached loading times of the enzyme package.
Additionally latent bug found and fixed related to precompilation of Enzyme functions